<?php
/**
 * Created by PhpStorm.
 * Author: Shadow
 * Date: 2022/4/2
 * Time: 10:52 上午
 * description: article-add.blade.php
 * 文章添加页面
 */
?>

{{--引入本地样式--}}
<link rel="stylesheet" href="/static/bootstrap-4.6.1-dist/css/bootstrap.css">
<script src="/static/bootstrap-4.6.1-dist/js/bootstrap.js"></script>

<h2>添加页面</h2>

<form role="form" method="post" action="add" enctype="multipart/form-data">
    @csrf
    <div class="form-group">
        <label for="name">Title</label>
        <input type="text" class="form-control" name="title"
               placeholder="请输入标题" required>
    </div>
    <div class="form-group">
        <label for="name">Author</label>
        <input type="text" class="form-control" name="author"
               placeholder="请输入作者" required>
    </div>
    <div class="form-group">
        <label for="name">Image</label>
        <input type="file" class="form-control" name="image"
               placeholder="请输入作者" required>
    </div>
    <div class="form-group">
        <label for="name">Desc</label>
        <input type="text" class="form-control" name="desc"
               placeholder="请输入简介">
    </div>
    <div class="form-group">
        <label  for="name">Status</label>
        <input type="radio" class="form-inline" name="status" value="1">正常
        <input type="radio" class="form-inline" name="status" value="2">冻结
    </div>

    <button type="submit" class="btn btn-default">提交</button>
    <div class="form-group">
        <label  for="name">Role</label>
        <input type="checkbox" class="form-inline" name="role[]" value="1">超级管理员
        <input type="checkbox" class="form-inline" name="role[]" value="1">测试
        <input type="checkbox" class="form-inline" name="role[]" value="2">运营
    </div>
</form>
